package com.pcbly.web.action.dict;

import java.util.List;

import com.pcbly.web.action.BaseAction;
import com.pcbly.web.bean.dict.DictCategoryBean;
import com.pcbly.web.bean.dict.DictCategoryDependBean;
import com.pcbly.web.business.dict.DictCategoryDependService;

public class DictionaryDependAction extends BaseAction<DictCategoryDependBean> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2300654892016461793L;
	private DictCategoryDependService dictCategoryDependService;
	public void setDictCategoryDependService(
			DictCategoryDependService dictCategoryDependService) {
		this.dictCategoryDependService = dictCategoryDependService;
	}
	/**
	 * 显示
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public List<DictCategoryBean> childCategory(String masterId)
			throws Exception {
		if (log.isDebugEnabled()) {
			log.debug("login childCategory..........");
			log.debug(masterId);
		}
		return dictCategoryDependService
				.queryDictCategoryBeansByMasterId(masterId);
	}

}
